Skip to main content

All Questions

4votes
1answer
805views

Compute the square root of a positive integer using binary search

The requirement is to find the square root of a positive integer using binary search and the math property that square root of a number n is between ...
nonopolarity's user avatar
4votes
1answer
212views

Rare binary numbers

Rare numbers are the natural numbers in their binary forms in which there aren't two (or more) ones next to each other. Make a program that will give the N. rare number! For example: In case of N = ...
Howard Fring's user avatar
6votes
2answers
10kviews

Finding greatest value in array smaller than x

Code review requested to make this code simpler, cleaner, and better. Input array is sorted. This program finds the greatest number smaller than x. So, in an ...
JavaDeveloper's user avatar

close